<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class DropAndCreateCollistsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::dropIfExists('collists');
         Schema::create('collists', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('collistid')->nullable();
            $table->integer('collist_no')->nullable();
            $table->text('columns')->nullable();
            $table->string('img')->nullable();
            $table->string('name')->nullable();
            $table->string('title')->nullable();
            $table->string('subtitle')->nullable();
            $table->string('tags')->nullable();
            $table->integer('tpl_id')->nullable();
            $table->string('tpltype')->nullable();
            $table->timestamp('online_at')->nullable();
            $table->timestamp('offline_at')->nullable();
            $table->string('status')->nullable();
            $table->string('short_desc')->nullable();
            $table->text('long_desc')->nullable();
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
